package com.woniuxy.carrental.service;

import com.woniuxy.carrental.entity.Loss;
import com.woniuxy.carrental.entity.PageBean;
import com.woniuxy.carrental.entity.ResponseResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author author
 * @create 2021-09-28 15:18
 */
//肖某报损：lossService
public interface LossService {

    //添加报损名单
    void addLossService(Loss loss);

    //查询展示所有报损订单
    List<Loss> selectAllLossService();

    //修改报损名单根据属性id
    void updataLossService(@Param("loss")Loss loss);

    //删除报损名单根据ID
    void deleteLossService(@Param("id")int id);

    //分页查询表中数据
    ResponseResult<PageBean<Loss>> selectLossByPageService(@Param("loss")Loss loss,
     @Param("pageIndex") int pageIndex, @Param("pageSize") int pageSize);

}
